﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace _06建造者设计模式
{
    public class GoodComputer : IBuilderComputer
    {
        private Computer _computer=new Computer();
        public void BuildCpu()
        {
            _computer.AddPart("i7的cpu");
        }

        public void BuildDisk()
        {
            _computer.AddPart("2T的固态硬盘");
        }

        public void BuildMemory()
        {
            _computer.AddPart("32G的内存");
        }

        public void BuildScreen()
        {
            _computer.AddPart("32寸的显示屏的内存");
        }

        public void BuildSystem()
        {
            _computer.AddPart("win10的操作系统");
        }

        public Computer GetComputer()
        {
           return _computer;    
        }
    }
}
